<script setup lang="ts">
import { showMessage } from '@/components/Messages_box';

const openMessageBox = () => {
    const params = {
        title: '温馨提示',
        msg: '确认要删除当前内容吗',
        options: {
            confirmButtonText: 'OK',
        }
    }
    showMessage(params, () => {
        console.log('点击了确认按钮');
    }, `<p>这是一条插槽消息</p>`)
}

</script>

<template>
    <div>
        <button @click="openMessageBox">打开消息提示框</button>
    </div>
</template>

<style lang="scss" scoped></style>